﻿<!DOCTYPE html>
<html data-dpr="2" lang="zh-cmn-Hans">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<title>jQuery红色分页样式代码 - 站长素材</title>

<link rel="stylesheet" href="css/pagination.css">

</head>
<body>

<div class="pagination"></div>

<!-- CDN 依赖文件 --> 
<script type="text/javascript" src="js/jquery.min.js"></script> 
<script type="text/javascript" src="js/underscore.js"></script> 
<script type="text/javascript" src="js/pagination.build.js"></script> 
<script type="text/javascript">
$(document).ready(function () {
	new pagination({
		pagination:$('.pagination'),
		maxPage: 7, //最大页码数,支持奇数，左右对称
		startPage: 1,    //默认第一页
		currentPage: 2,          //当前页码
		 totalItemCount: 10,    //项目总数,大于0，显示页码总数
		 totalPageCount: 20,        //总页数
		callback:function(pageNum){
			console.info(pageNum);
		}
	});
});
</script>

<div style="text-align:center;margin:50px 0; font:normal 14px/24px 'MicroSoft YaHei';">
<p>适用浏览器：360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗. 不支持IE8及以下浏览器。</p>
<p>来源：<a href="http://sc.chinaz.com/" target="_blank">站长素材</a></p>
</div>
</body>
</html>